<%--
  Created by IntelliJ IDEA.
  User: Dylan
  Date: 2018/8/1
  Time: 16:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <s:set name="age" value="10" scope="request"/>
    <s:set name="China" value="'jbit'"/>
    <s:set name="username" value="'jbit'" scope="session"/>
    <s:set name="count" value="10" scope="request"/>
    <s:set name="count" value="5" scope="application"/>
    Request作用域中age的值:<s:property value="#request.age"/><br/>
    Session作用域中username的值:
    <s:property value="#session.username"/><br/>
    Application作用域中count的值:
    <s:property value="#application.count"/><br/>
    使用attr对象获取Application作用域中count的值:
    <s:property value="#attr.count" /><br />
    ======================================<br>
    <s:set name="country1" value="China" scope="action"/>
    <s:set name="country2" value="'China'" />
    变量country1:<s:property value="#country1"/><br/>
    变量country2:<s:property value="#country2"/><br/>
    使用request对象获取变量country2:
    <s:property value="#request.country2"/><br/>
    <s:debug></s:debug>
</body>
</html>
